package com.lsh;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

/**
 * @author ：LiuShihao
 * @date ：Created in 2020/12/15 2:52 下午
 * @desc ：
 */
//排除DataSource自动配置类，否则会默认自动配置，不会使用我们定义的DataSource，并且启动报错循环依赖引用
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
public class DemoApplication {
    public static void main(String[] args) {
        SpringApplication.run(DemoApplication.class);
    }
}
